package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息管理业务对象 oa_message
 *
 * @author ruoyi
 * @date 2023-07-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaMessageBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 消息发送者
     */
    @NotNull(message = "消息发送者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sendId;

    /**
     * 消息接收者
     */
    @NotNull(message = "消息接收者不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long recordId;

    /**
     * 消息类型
     */
    @NotNull(message = "消息类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 阅读状态
     */
    @NotNull(message = "阅读状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageContent;

    /**
     * 阅读时间
     */
    private Date readTime;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;


}
